import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(canvasColor: Colors.blue),
      home: ContainerWidget(),
    );
  }
}

class ContainerWidget extends StatefulWidget {
  @override
  _ContainerWidgetState createState() => _ContainerWidgetState();
}

class _ContainerWidgetState extends State<ContainerWidget> {
  @override
  Widget build(BuildContext context) {
    return Container(
      alignment: Alignment.topCenter,
      decoration: BoxDecoration(
          shape: BoxShape.rectangle,
          border: Border.all(width: 2, color: Colors.black)),
      child: Scaffold(
        appBar: AppBar(),
        body: Row(
          children: [Text("关注"), Text("推荐")],
        ),
      ),
    );
  }
}
